package com.diy.sigmund.diycommon.designpatterns.command;

/**
 * @author ylm-sigmund
 * @since 2022/2/9 14:35
 */
public class CeilingFanHignCommand extends CeilingFanUndoCommand {

    public CeilingFanHignCommand(CeilingFan ceilingFan) {
        super(ceilingFan);
    }

    @Override
    public void execute() {
        preSpeed = ceilingFan.getSpeed();
        ceilingFan.high();
    }

    @Override
    public void undo() {
        super.undo();
    }
}
